let rule = {}

rule.unit = (val) => {
    let data = {
        1: '千克 (kg)',
        2: '克 (g)',
        3: '吨'
    }
    return data[val]
}
rule.sex = (val) => {
    let data = {
       1: '男',
       2: '女'
    }
    return data[val]
  }

export default rule